﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="searchproducts.ascx.cs" Inherits="controls_client_searchproducts" %>
<script type="text/javascript" language="javascript">
    function checkData()
    {
        if(document.getElementById('<%=txtGiaThapNhat.ClientID%>').value != "" && isNaN(document.getElementById('<%=txtGiaThapNhat.ClientID%>').value)==true)
        {
            alert("Vui lòng chỉ nhập số!");
            document.getElementById('<%=txtGiaThapNhat.ClientID%>').value ="";
            document.getElementById('<%=txtGiaThapNhat.ClientID%>').focus();
            return false;
        }
        if(document.getElementById('<%=txtGiaCaoNhat.ClientID%>').value != "" && isNaN(document.getElementById('<%=txtGiaCaoNhat.ClientID%>').value)==true)
        {
            alert("Vui lòng chỉ nhập số!");
             document.getElementById('<%=txtGiaCaoNhat.ClientID%>').value ="";
             document.getElementById('<%=txtGiaCaoNhat.ClientID%>').focus();
            return false;
        }
    }
</script>
<div class="col-module style2">                           
    <div class="col-module_header_l"></div>
    <div class="col-module_header_r"></div>                                    									
	<h3><span>Tìm kiếm </span>Sản phẩm</h3>                                                                                            
    <div class="col-module-content clearfix">    
        <table width="100%">
            <tr> 
                <td colspan="2">                                        
                    <asp:DropDownList ID="ddlDanhMuc" runat="server" Width="218px">
                    </asp:DropDownList>  
                </td> 
            </tr>
            <tr><td><br /></td></tr>
            <tr> 
                <td colspan="2">                                        
		            <asp:TextBox ID="txtTuKhoa" Width="205px" runat="server" onFocus="if(this.value=='Tên sản phẩm')this.value='';" onBlur="if(this.value=='')this.value='Tên sản phẩm';" value="Tên sản phẩm" class="inputbox"></asp:TextBox>
                </td> 
            </tr>
            <tr><td><br /></td></tr>
            <tr> 
                <td>                                    
                    <asp:TextBox Width="90px" ID="txtGiaThapNhat" runat="server" onchange="return checkData();" 
                        onFocus="if(this.value=='Giá thấp nhất')this.value='';" 
                        onBlur="if(this.value=='')this.value='Giá thấp nhất';" value="Giá thấp nhất" 
                        class="inputbox" AutoPostBack="True"></asp:TextBox>
                </td>
                <td>
                    <asp:TextBox Width="90px" ID="txtGiaCaoNhat" runat="server" onchange="return checkData();" onFocus="if(this.value=='Giá cao nhất')this.value='';" onBlur="if(this.value=='')this.value='Giá cao nhất';" value="Giá cao nhất" class="inputbox"></asp:TextBox>
                </td>
            </tr>
           <tr><td><br /></td></tr>
            <tr>
                <td colspan="2" align="center">                 
                <span class="round">
                <span>
                    <asp:Button ID="btnTimKiem" runat="server" Text="Tìm kiếm" 
                        onclick="btnTimKiem_Click" style="background-color:Transparent; margin-top:3px; text-shadow: 0px 1px 1px #222;" 
                BorderStyle="None" ForeColor="White"/>
                </span>
            </span>
                </td>
            </tr>      
          </table>
    </div>
</div>